package com.ss.android.common.app;

import android.app.Activity;
import android.content.Context;

public class AppHooks {
	private static ActivityLifeCycleHook activityHook=null;
	private static InitHook initHook=null;
	
	public static ActivityLifeCycleHook getActivityHook(){
		return activityHook;
	}
	
	public static InitHook getInitHook(){
		return initHook;
	}
	
	public static void setActivityHook(ActivityLifeCycleHook activityLifeCycleHook){
		activityHook=activityLifeCycleHook;
	}
	
	public static interface ActivityLifeCycleHook{
		public void onActivityPaused(Activity activity);
		public void onActivityResumed(Activity activity);
	}
	
	public static interface InitHook{
		public void tryInit(Context context);
	}
}
